<!--#include file="../core/db.inc"-->
<!--#include file="../core/app.inc"-->
<!--#include file="../core/var.inc"-->
<!--#include file="../core/cache.inc"-->
<!--#include file="../core/json.inc"-->
<!--#include file="./inc/function.inc"-->
<%
root = "../"
call db.open(root)
call app.webInit()
if app.isAdmin = false then
	response.redirect "./login.asp"
	response.end()
end if
siteUrl = left(siteUrl, inStrRev(siteUrl, "/") - 1)
siteUrl = left(siteUrl, inStrRev(siteUrl, "/"))

dim admin_rows
admin_rows = app.int(app.getCookie("rows"))
if rows <> admin_rows then
    app.setCookie "rows", rows
end if

dim isSuper
dim aq, rs, sql, str, temp, data, batchId, iid, Tid, editTitle, i, row
dim messageContent, messageUrl, messageText '提示信息变量
aq = lcase(admin.filter(request("q")))
iid = app.int(request("id"))
batchId = request("batchId")
if batchId <> "" then
	batchId = admin.joinID(batchId)
else
    batchId = 0
end if
editTitle = "添加"
if iid > 0 then editTitle = "修改"
isSuper = app.cj_bool(adminInfo(7)) '是否超管

if aq = "editbatch" or aq = "savebatch" then
    if batchId = 0 then
        if request("ajax") <> "" then
            app.json "请选择ID！", 1
        else
            admin.message "请选择ID！"
        end if
    end if
end if

%>